package api

import (
	"6-11zk/api/handler"
	"github.com/gin-gonic/gin"
)

func LoadRouter(r *gin.Engine) {
	Supplier := r.Group("/supplier")
	{
		Supplier.POST("/create", handler.SupplierCreate)
		Supplier.GET("/list", handler.SupplierList)
	}
	Product := r.Group("/product")
	{
		Product.POST("/create", handler.ProductCreate)
		Product.GET("/list", handler.ProductList)
		Product.POST("/status", handler.ProductUpdate)
	}
	r.POST("/upload", handler.Upload)
}
